Iterator trait
反復処理そのものを表す
docs
定義
code:rs
trait Iterator {
type Item;
// nextやcountなど、76 methodsが定義されている
}
実装した型の例
Zip
,
Range
,
Chunk
, etc.
/mrsekut-book-4873118557/341 (15.1 IteratorトレイトとIntoIteratorトレイト)
#wip
chain
https://doc.rust-lang.org/std/iter/trait.Iterator.html#method.chain
2つのiteratorをmergeする感じ
Chain trait